<!DOCTYPE html>
<html>
<head>

    <link rel="stylesheet" href="/Statics/Home/css/amazeui.min.css">

    <link rel="stylesheet" href="/Statics/Home/css/button.css">

    <link rel="stylesheet" href="/Statics/Home/js/sco/css/scojs.css" />

    <link rel="stylesheet" href="/Statics/Home/css/reset.css">
    <link rel="stylesheet" href="/Statics/Home/css/common.css">

    <template file="Home/meta" />
    <template file="Home/css" />









</head>
<body style="background:#eaeeef">
<template file="Home/search" />


<if condition="$u['vip']">

    <template file="User/header" />

    <template file="User/Qianbao/nav" />


    <else/>




    <img src="__IMG__/chongzhi.png" class="am-img-responsive" alt="">

</if>


<div class="am-cf am-bg-fff">


    <div class="am-g ">


        <volist name="_list" id="v">

            <div class=" am-cf am-margin-top-sm am-padding-vertical-xs common-border-bottom">


                <div class="am-u-sm-7    ">

                    <span class="am-block am-text-333 am-text-lg">{$v.product_name}*{$v.num}</span></span>
                    <span class="am-block am-text-999 am-text-xs ">剩余:{$v.cishu}次
   <if condition="($v['cishu']) and (time() lt $v['next_time'])">
       下次领取时间:  <span class="am-text-warning">{$v.next_time|date="m-d",###}</span>

                        </if>
                    </span>

                </div>






                <div class="am-u-sm-5   am-text-right am-text-666 ">

                    <if condition="$v['cishu'] eq 0">
\
                        <a   class="am-btn am-btn-default am-btn-default">已经领完</a>


                        <elseif condition="time() lt $v['next_time']"/>
                            <a   class="am-btn am-btn-default am-btn-default">本月已领</a>


                            <else/>

                            <a href="{:U('lingqu',array('id'=>$v['id']))}" class="am-btn am-btn-success ">点击领取</a>


                    </if>



                </div>



            </div>




        </volist>

        <div class="pages am-text-center am-bg-fff common-border-top am-padding-vertical-sm">    {$Page}  </div>





    </div>
</div>
<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-index  common-border-top"
     id="">
    <template file="Home/bottom_nav" />
</div>
<template file="Home/js" />


<script>



    $(function(){



        $("#gz_list span").click(function(){

            $("#cz_title").html($(this).data("title"));


            $("input[name='price']").val($(this).data("price"));


        })







    })


</script>


</body>
</html>